<!DOCTYPE html>
<script>
    function do_open() {
        var list = document.getElementById('urls');
        if (!list) return;
        var urls = list.value;
        if (!urls) return;
        urls = urls.split('\n');
        for (var i in urls) {
            url = urls[i];
            if (!url) continue;
            m = url.match(/^https?:\/\//i)
            if (!m) url = 'http://' + url;
            window.open(url);
        }
    }
</script>
<textarea id=urls rows=20 style='width:90%'>
</textarea>
<hr>
<button onclick=do_open()>Open ALL</button>
